package application.model.wrappers;

import application.model.MaterialWithParametersModel;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.ArrayList;
import java.util.List;

@XmlRootElement(name = "materials")
public class MaterialWithParametersWrapper
{
    private List<MaterialWithParametersModel> materialWithParametersModels = new ArrayList<MaterialWithParametersModel>();

    @XmlElement(name = "material")
    public List<MaterialWithParametersModel> getMaterialWithParametersModels()
    {
        return materialWithParametersModels;
    }

    public void setMaterialWithParametersModels(List<MaterialWithParametersModel> materialWithParametersModels)
    {
        this.materialWithParametersModels = materialWithParametersModels;
    }

    public void addMaterialWithParameters(MaterialWithParametersModel materialWithParametersModel)
    {
        materialWithParametersModels.add(materialWithParametersModel);
    }
}
